package com.lagou.demo.pojo;

import java.io.Serializable;

/**
 * 定义Class实体类来保存班级类信息
 */
public class Classes implements Serializable {
    private static final long serialVersionUID = 1653118483323542166L;
    private int id;//主键id
    private String className;//班级名称
    private String grade;//年级
    private String teacherName;//班主任名字
    private String watchWord;//口号
    private int number;//人数

    public Classes() {
    }

    public Classes(String className, String grade, String teacherName, String watchWord, int number) {
        this.className = className;
        this.grade = grade;
        this.teacherName = teacherName;
        this.watchWord = watchWord;
        this.number = number;
    }

    public Classes(int id, String className, String grade, String teacherName, String watchWord, int number) {
        this.id = id;
        this.className = className;
        this.grade = grade;
        this.teacherName = teacherName;
        this.watchWord = watchWord;
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getWatchWord() {
        return watchWord;
    }

    public void setWatchWord(String watchWord) {
        this.watchWord = watchWord;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Class{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", grade='" + grade + '\'' +
                ", teacherName='" + teacherName + '\'' +
                ", watchWord='" + watchWord + '\'' +
                ", number=" + number +
                '}';
    }
}
